package cn.sixmillions.mb.sqlSession;

import cn.sixmillions.mb.pojo.Configuration;
import cn.sixmillions.mb.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * 执行jbbc的接口
 */
public interface Executor {

    /**
     * 执行查询
     *
     * @param configuration
     * @param mappedStatement
     * @param params
     * @param <E>
     * @return
     * @throws SQLException
     */
    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

}
